<%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%>
<%@ page import="performReservation.SMMDBBean"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.Vector"%>

<%!
	Vector<String[]> vec = new Vector<String[]>();
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Modify Customer</title>
</head>
<body>
	<%
		String email = request.getParameter("email");
		if(!email.equals("")){
			SMMDBBean pProcess = SMMDBBean.getInstance();
			vec = pProcess.getSpecificCustomers(email);
			if(vec!=null){
				for(int i = 0; i < vec.size();i++){
					String[] cus = new String[5];
					cus = vec.get(i);
					%>
						<center>Modify Customer</center>
							<form method="post" action="modifyPro.jsp?email=<%=email%>"/>
								<table width="300" border="1" cellspacing="0" cellpadding="0" bgcolor="white" align="center">
										<tr>
											<td  width="120" bgcolor="white" align="center" >Name:</td>
											<td  width="200">
											<input type="text" size="27" maxlength="30" name="name" value="<%=cus[2] %>"></td>
										</tr>
										<tr>
											<td  width="120" bgcolor="white" align="center" >Nickname:</td>
											<td  width="200">
											<input type="text" size="27" maxlength="30" name="nickName" value="<%=cus[4] %>"></td>
										</tr>
										<tr>
											<td  width="120" bgcolor="white" align="center" >Email:</td>
											<td  width="200">
											<input type="text" size="27" maxlength="30" name="address" value="<%=cus[0] %>" readonly></td>
										</tr>
										<tr>
											<td  width="120" bgcolor="white" align="center" >Address:</td>
											<td  width="200">
											<input type="text" size="27" maxlength="30" name="address" value="<%=cus[3] %>"></td>
										</tr>
										
										<tr>
											<td  width="120" bgcolor="white" align="center" >Password:</td>
											<td  width="200">
											<input type="password" size="27" maxlength="30" name="password"></td>
										</tr>
										<tr>
											<td  width="120" bgcolor="white" align="center" >Confirm Password:</td>
											<td  width="200">
											<input type="password" size="27" maxlength="30" name="cpassword"></td>
										</tr>
										
									</table>
									<table width="300" border="1" cellspacing="0" cellpadding="0" bgcolor="white" align="center">
										<tr>
											<td width="300" align="center">
											<input type="submit" value="Submit"> <input type="reset" value="cancle">
											<input type="button" value="delete" onclick="window.location.href='adDeleteCustomer.jsp?email=<%=email %>'" />
											</td>
									</table>
							</form> 
					<%
				}
				
			}
		}
	%>
</body>
</html>